package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 客户公海收回规则表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "customer_pool_rule")
public class CustomerPoolRule implements Serializable {
    /**
     * 收回规则id
     */
    @TableId(value = "rule_id", type = IdType.INPUT)
    private Integer ruleId;

    /**
     * 公海id
     */
    @TableField(value = "pool_id")
    private Integer poolId;

    /**
     * 收回规则判断类型 1跟进记录 2商机 3成交状态
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 已成交客户是否进入公海 0不进入 1进入
     */
    @TableField(value = "deal_handle")
    private Integer dealHandle;

    /**
     * 有商机客户是否进入公海 0不进入 1进入
     */
    @TableField(value = "business_handle")
    private Integer businessHandle;

    /**
     * 客户级别设置 1全部 2根据级别分别设置
     */
    @TableField(value = "customer_level_setting")
    private Integer customerLevelSetting;

    /**
     * 客户级别 1全部
     */
    @TableField(value = "`level`")
    private String level;

    /**
     * 公海规则限制天数
     */
    @TableField(value = "limit_day")
    private Integer limitDay;

    private static final long serialVersionUID = 1L;
}